﻿@model LeadMaster.ViewModels.ViewModelLeadBuilder

<div class="spacer"></div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Create Lead Template</legend>

        <div class="editor-label">
            @Html.Label("Sector")
        </div>
        <div class="editor-field">
            @Html.DropDownList("LeadTemplate_SectorID", null, new { style = "width:300px;" })
            @Html.ValidationMessageFor(model => model.LeadTemplate.SectorID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LeadTemplate.Title)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.LeadTemplate.Title, new { @class="largetextbox"})
            @Html.ValidationMessageFor(model => model.LeadTemplate.Title)
        </div>
        <div class="spacer"></div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript">
    $(document).ready(function () {

    $("#LeadTemplate_SectorID").attr('name','LeadTemplate.SectorID')

    });
    </script>
}
